//Son.vue
<template>
  <div>
    <h4>子组件 {{ msg }}</h4>
    <h6>{{ test }}</h6>
    <button @click="$emit('update:msg', 'hello world')">修改数据</button>
    <button @click="$emit('update:test', '修改成功')">修改数据</button>
  </div>
</template>

<script>
export default {
  props: ["msg", "test"],
};
</script>